import React, { Component } from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { hashHistory } from 'react-router';
import RouteMap from './routes/index.js';
import configureStore from './reducers/configureStore.js';

const store = new configureStore();

/**
 * 根挂载组件
 */
render(
	<Provider store={store}>
  		<RouteMap history={hashHistory}></RouteMap>
  	</Provider>,
  	document.getElementById('root')
)